package com.zhangfei.plus.exception;


public class MyException extends RuntimeException {

    private String errorMessage;

    private ResultCodeEnum retCode;

    public String getErrorMessage() {
        return errorMessage;
    }

    public ResultCodeEnum getRetCode() {
        return retCode;
    }

    public MyException(String errorMessage) {
        super(errorMessage);
        this.errorMessage = errorMessage;
    }

    public MyException(ResultCodeEnum performRetCodeDefine) {
        super(performRetCodeDefine.getMsg());
        this.errorMessage = performRetCodeDefine.getMsg();
        this.retCode = performRetCodeDefine;
    }


}
